import java.io.*;

class ReadPass {

	public static String getLinePasswordCorrespondingToLogin(int Filenumber,
			String fileWithPasswords) throws IOException {

		File arxiu = new File(fileWithPasswords);
		BufferedReader br = new BufferedReader(new FileReader(arxiu));
		String lleguir = null;
		int lineNo;
		
		do {
			lleguir = br.readLine();
		} while (!lleguir.equals("*") && !lleguir.equals(null));

		for (lineNo = 1; lineNo < 20; lineNo++) {
			if (lineNo == Filenumber) {
				lleguir = br.readLine();
				lineNo = 21;
			} else {
				br.readLine();
			}

		}
		br.close();
		return lleguir;
	}
}